/*******************************************************************
 * Copyright (c) 2013 珠海比特讯科技有限公司. All rights reserved.
 * （1）软件的版权将受到法律保护，不允许非经授权的使用；
 * （2）未经版权所有人授权，任何人不得修改、复制和传播软件源代码、图片及其它资源等；
 * （3）未经版权所有人授权，不允许对软件进行修改；
 * （4）未经版权所有人授权，不允许在该软件的基础上开发新的软件；
 * （5）珠海比特讯科技有限公司拥有最终解释权
 *******************************************************************/
package youxiao.bytezon.views.course_details;

import java.math.BigDecimal;
import java.time.LocalTime;

import youxiao.bytezon.enums.AttendanceState;
import youxiao.bytezon.enums.PayState;
import youxiao.bytezon.enums.Sex;
import youxiao.bytezon.enums.StudentCourseDetailState;
import youxiao.bytezon.models.Student;
import youxiao.bytezon.models.StudentCourseDetail;
import youxiao.bytezon.utils.BeanUtil;

public class StudentCourseDetailView {

	private Long id;
	private String name;
	private Sex sex;
	private BigDecimal price;
	private StudentCourseDetailState state;
	private PayState payState;
	private AttendanceState attendanceState;
	private LocalTime attendStarttime;
	private LocalTime attendEndtime;
	
	public StudentCourseDetailView(StudentCourseDetail studentCourseDetail) {
		BeanUtil.copyTableProps(studentCourseDetail, this, "courseDetail", "course", "student");
		
		Student student = studentCourseDetail.getStudent();
		this.id = student.getId();
		this.name = student.getName();
		this.sex = student.getSex();
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Sex getSex() {
		return sex;
	}

	public void setSex(Sex sex) {
		this.sex = sex;
	}

	public BigDecimal getPrice() {
		return price;
	}

	public void setPrice(BigDecimal price) {
		this.price = price;
	}

	public StudentCourseDetailState getState() {
		return state;
	}

	public void setState(StudentCourseDetailState state) {
		this.state = state;
	}

	public PayState getPayState() {
		return payState;
	}

	public void setPayState(PayState payState) {
		this.payState = payState;
	}

	public AttendanceState getAttendanceState() {
		return attendanceState;
	}

	public void setAttendanceState(AttendanceState attendanceState) {
		this.attendanceState = attendanceState;
	}

	public LocalTime getAttendStarttime() {
		return attendStarttime;
	}

	public void setAttendStarttime(LocalTime attendStarttime) {
		this.attendStarttime = attendStarttime;
	}

	public LocalTime getAttendEndtime() {
		return attendEndtime;
	}

	public void setAttendEndtime(LocalTime attendEndtime) {
		this.attendEndtime = attendEndtime;
	}

}
